package com.hu.zhcc.shiro.service;
import com.baomidou.mybatisplus.plugins.Page;
import com.hu.zhcc.shiro.dao.EmpMapper;
import com.hu.zhcc.shiro.entity.tj.Emp;
import com.hu.zhcc.shiro.entity.tj.PageVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;
import java.util.Map;

@Service
public class EmpServieImpl implements EmpService{
    @Autowired
    private EmpMapper empMapper;
    @Override
    public int deleteByPrimaryKey(Integer id) {
        return empMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Emp record) {
        return empMapper.insert(record);
    }

    @Override
    public int insertSelective(Emp record) {
        return empMapper.insertSelective(record);
    }

    @Override
    public Emp selectByPrimaryKey(Integer id) {
        return empMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Emp record) {
        return empMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Emp record) {
        return empMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Emp> queryAll() {
        return empMapper.queryAll();
    }

    @Override
    public List<Emp> listEmp(Emp emp) {
        return empMapper.listEmp(emp);
    }


}
